class UrlMappings {
    static mappings = {
      "/$controller/$action?/$id?"{
	      constraints {
			 // apply constraints here
		  }
	  }
      "/team"(controller:"team", parseRequest:true){
          action = [GET:"index", POST:"save"]
      }
      "/team/$id?"(controller:"team", parseRequest:true){
          action = [GET:"show", PUT:"update", DELETE:"delete"]
      }
      "/"(view:"/index")
	  "500"(view:'/errorxml')
	}
}
